//
//  XMLogManager.m
//  XunMi
//
//  Created by MacBook on 2024/2/18.
//

#import "XMLogManager.h"
#import <CocoaLumberjack/CocoaLumberjack.h>


#if RELEASE
static const DDLogLevel ddLogLevel = DDLogLevelError;
#else
static const DDLogLevel ddLogLevel = DDLogLevelVerbose;
#endif

@implementation XMLogManager

void CustomLog(const char *func, int lineNumber, NSString *format, ...) {
    
#if RELEASE
#else
    va_list args;
    va_start(args, format);
    NSString *string = [[NSString alloc] initWithFormat:format arguments:args];
    va_end(args);
    NSString *strFormat = [NSString stringWithFormat:@"%s [第%d行]:\n %s  %@\n", __TIME__, lineNumber, func, string];
    DDLogDebug(@"%@", strFormat);
#endif
}


@end
